
package br.unipampa.dados;

import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.sql.*;
import java.util.ArrayList;

/**
 * @author Ricardo Burg
 * @since 18/05/2012
 * @version 0.2
 * 
 * Readaptações de:
 * @author Gabriel Moro
 * @since 15/03/2013
 * @version 1.2
 */
public abstract class DML {

    protected Connection connection = null; // gerencia a conexão
    protected Statement statement = null;   // instrução de consulta
    protected ResultSet resultSet = null;   // gerencia resultados
    protected String table;
    
    public abstract ArrayList<Object> select(String coluna);

    public abstract int insert(String valores);
    
    public abstract int update(String atributoX, String valores);

    public abstract int delete(String valor);

    public abstract void closedConnection();
}
